{if $result}
	{$result}
	{if $smarty.server.HTTP_USER_AGENT}
		<p>
			<script type="text/javascript" src="/js/functions.js"></script>
			<script type="text/javascript">
				createCopyButton('{$result}');
			</script>
		</p>
	{/if}
{else}
	{if $invalid_link}
		Error: Link is invalid.
	{elseif $invalid_domain}
		Error: Self redirection is denied.
	{elseif $keyword_exists}
		Error: Generated keyword already exists (which is rare when generating one, but it happens), so try again.
	{elseif $invalid_email}
		Error: Email is invalid.
	{elseif $no_association}
		Error: API key has no association.
	{elseif $unsupported_action}
		Error: Unsupported action.
	{/if}
{/if}